package com.numberone.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.numberone.system.mapper.FathersMapper;
import com.numberone.system.domain.Fathers;
import com.numberone.system.service.IFathersService;
import com.numberone.common.support.Convert;

/**
 * 创始人 服务层实现
 * 
 * @author numberone
 * @date 2020-09-25
 */
@Service
public class FathersServiceImpl implements IFathersService 
{
	@Autowired
	private FathersMapper fathersMapper;

	/**
     * 查询创始人信息
     * 
     * @param id 创始人ID
     * @return 创始人信息
     */
    @Override
	public Fathers selectFathersById(Long id)
	{
	    return fathersMapper.selectFathersById(id);
	}
	
	/**
     * 查询创始人列表
     * 
     * @param fathers 创始人信息
     * @return 创始人集合
     */
	@Override
	public List<Fathers> selectFathersList(Fathers fathers)
	{
	    return fathersMapper.selectFathersList(fathers);
	}
	
    /**
     * 新增创始人
     * 
     * @param fathers 创始人信息
     * @return 结果
     */
	@Override
	public int insertFathers(Fathers fathers)
	{
	    return fathersMapper.insertFathers(fathers);
	}
	
	/**
     * 修改创始人
     * 
     * @param fathers 创始人信息
     * @return 结果
     */
	@Override
	public int updateFathers(Fathers fathers)
	{
	    return fathersMapper.updateFathers(fathers);
	}

	/**
     * 删除创始人对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteFathersByIds(String ids)
	{
		return fathersMapper.deleteFathersByIds(Convert.toStrArray(ids));
	}

	@Override
	public Fathers query() {
		return fathersMapper.selectByFathers();
	}

}
